﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using AppFx.BizTalk.Diagnostics.Telemetry;

namespace AppFx.BizTalk.Tests.Diagnostics.Telemetry
{
    [TestClass]
    public class TelemetryManagerTests
    {
        [TestMethod]
        public void Default()
        {
            var telemetryClient = TelemetryManager.GetDefaultClient();
            Assert.IsNotNull(telemetryClient);
        }

        [TestMethod]
        public void GetNamed()
        {
            var telemetryClient = TelemetryManager.GetNamedClient("TelemetryClient2");            
            telemetryClient.TrackEvent("My Event");
            Assert.IsNotNull(telemetryClient);
        }        
    }
}
